<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-packet-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">红包金额：</label>
				<div class="col-sm-8">
					<input id="redPacketAdmount" name="redPacketAdmount" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">红包描述：</label>
				<div class="col-sm-8">
					<input id="redPacketRemark" name="redPacketRemark" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">红包图片：</label>
				<div class="col-sm-8">
					<input id="redPacketPic" name="redPacketPic" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">红包数量：</label>
				<div class="col-sm-8">
					<input id="redPacketQuantity" name="redPacketQuantity" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">NORMAL:普通红包

DENSE:密码红包

OFFICAL:祝福红包

ALLCOUNTRY:全国红包：</label>
				<div class="col-sm-8">
					<input id="redPacketType" name="redPacketType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">红包密码：</label>
				<div class="col-sm-8">
					<input id="redPacketPw" name="redPacketPw" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">红包所在经度：</label>
				<div class="col-sm-8">
					<input id="redPacketLon" name="redPacketLon" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">红包所在纬度：</label>
				<div class="col-sm-8">
					<input id="redPacketLat" name="redPacketLat" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">随机规则(KM:范围红包,ALLCITY:全市,ALLAREA:全区)：</label>
				<div class="col-sm-8">
					<input id="randomRules" name="randomRules" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告外部链接：</label>
				<div class="col-sm-8">
					<input id="advertisingExternalLink" name="advertisingExternalLink" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告手机号码：</label>
				<div class="col-sm-8">
					<input id="advertisingPhone" name="advertisingPhone" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告地址：</label>
				<div class="col-sm-8">
					<input id="advertisingAddress" name="advertisingAddress" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="ctime" name="ctime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">所属用户id ：</label>
				<div class="col-sm-8">
					<input id="redPacketUserId" name="redPacketUserId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">红包状态
FINISH:完成 
UNFINISH:未完成,
EXPIRED:过期退回
WAITPAY:待支付
FAIL:失效
REFUNDING:退款中
：</label>
				<div class="col-sm-8">
					<input id="redPacketStatus" name="redPacketStatus" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">子红包领取城市 : 有值时，默认为城市可见，：</label>
				<div class="col-sm-8">
					<input id="redPacketSonCity" name="redPacketSonCity" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">子红包领取区县 : 有值时，默认为区县可见，：</label>
				<div class="col-sm-8">
					<input id="redPacketSonArea" name="redPacketSonArea" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "module/packet"
		$("#form-packet-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/add", $('#form-packet-add').serialize());
			}
		});
	</script>
</body>
</html>
